/*let content = document.getElementById('content');
$(function(){
    $('#content').attr('src','/main');
    setHeight();
});
window.onresize=function(){
    setHeight();
};
content.onresize = function() {
    setHeight();
};

function setHeight() {
    $('body,html').animate({ scrollTop: 0 }, 0);
    if (content) {
        let iframeWin = content.contentWindow || content.contentDocument.parentWindow;
        let clientHeight = document.body.clientHeight;
        if (iframeWin.document.body) {
            let frameHeight = iframeWin.document.body.scrollHeight || iframeWin.document.documentElement.scrollHeight ;
            //frameHeight < 2000 ? set(frameHeight > clientHeight*0.8 ? frameHeight+'px' : clientHeight+'px') : set(800);
            $('#content').height(frameHeight > clientHeight*0.8 ? frameHeight*0.95: clientHeight);
        }
    }
}*/
function navigate(url) {
    //$('#menu-toggle').attr('class','navbar-toggle nav-link');
    if ($(window).width() < 1440 && url!=='/main') {
        $('#menu-toggle').attr('class','navbar-toggle nav-link');
        $('#navigation').slideToggle(400);
    }
    $('#content').attr('src',url);
}

